          <?php echo $this->Session->flash(); ?>
          <div class="row">
            <div class="span9">
              <form id="formulario"
                    class="form-horizontal"
                    action="<?php echo $this->Html->url(array('controller' => 'veiculos')); ?>"
                    method="post"
                    accept-charset="utf-8"
                    enctype="multipart/form-data">
                <fieldset>
                  <legend>
                    Cadastro
                    <?php echo $this->Html->image('ajax-loader.gif', array('id' => 'ajax-loader', 'alt' => __d("contatos", "Carregando..."))); ?>
                  </legend>
                  <div class="control-group required">
                    <label class="control-label" for="VeiculoDescricao">Descrição</label>
                    <div class="controls">
                      <input class="span3"
                             id="VeiculoDescricao"
                             name="data[Veiculo][descricao]"
                             type="text"
                             tabindex="1"
                             autofocus
                             data-rules="{rules:{required:true,minlength:3,messages:{required:'Obrigatório',minlength:'A descrição deve conter no mínimo 3 caracteres'}}}"
                             title="Este campo deve conter no mínimo 3 caracteres."
                             required>
                      <span class="help-inline"></span>
                    </div>
                  </div>
                  <div class="control-group required">
                    <label class="control-label" for="VeiculoPlaca">Placa</label>
                    <div class="controls">
                      <input class="span3"
                             id="VeiculoPlaca"
                             name="data[Veiculo][placa]"
                             type="text"
                             tabindex="2"
                             data-rules="{rules:{required:true,pattern:/^[A-Z]{3}-[0-9]{4}$/i,messages:{required:'Obrigatório',pattern:'Placa inválida.'}}}"
                             required>
                      <span class="help-inline"></span>
                    </div>
                  </div>
                  <div class="control-group required">
                    <label class="control-label" for="VeiculoAno">Ano</label>
                    <div class="controls">
                      <input class="span3"
                             id="VeiculoAno"
                             name="data[Veiculo][ano]"
                             type="number"
                             tabindex="3"
                             data-rules="{rules:{required:true,messages:{required:'Obrigatório'}}}"
                             required>
                      <span class="help-inline"></span>
                    </div>
                  </div>
                  <div class="control-group required">
                    <label class="control-label" for="VeiculoCapacidade">Capacidade</label>
                    <div class="controls">
                      <input class="span3"
                             id="VeiculoCapacidade"
                             name="data[Veiculo][capacidade]"
                             type="number"
                             tabindex="4"
                             data-rules="{rules:{required:true,messages:{required:'Obrigatório'}}}"
                             required>
                      <span class="help-inline"></span>
                    </div>
                  </div>
                  <div class="control-group required">
                    <label class="control-label" for="VeiculoCor">Cor</label>
                    <div class="controls">
                      <input class="span3"
                             id="VeiculoCor"
                             name="data[Veiculo][cor]"
                             type="text"
                             tabindex="5"
                             data-rules="{rules:{required:true,messages:{required:'Obrigatório'}}}"
                             required>
                      <span class="help-inline"></span>
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label" for="VeiculoFotografia">Fotografia</label>
                    <div class="controls">
                      <input type="hidden" name="MAX_FILE_SIZE" value="307200"><!-- 300 Kbytes -->
                      <input class="input-file"
                             id="VeiculoFotografia"
                             name="data[Veiculo][fotografia]"
                             type="file"
                             tabindex="6"
                             data-rules="{rules:{accept:'jpeg|jpg|png',messages:{accept:'Arquivo inválido'}}}">
                      <span class="help-inline"></span>
                      <p class="help-block">Tamanho máximo do arquivo permitido: 300 KB</p>
                      <p class="help-block">Tipos de arquivo permitidos: *.jpeg, *.jpg, *.png</p>
                      <br>
                      <div class="progress progress-striped active hide" style="width: 260px;">
                        <div class="bar" style="width: 45%;">
                        </div>
                      </div>
                    </div>
                  </div>
                  <em class="required">Obrigatório</em>
                  <div class="form-actions">
                    <button type="reset" class="btn">Limpar</button>
                    <button type="submit" class="btn btn-primary">Salvar</button>
                  </div>
                </fieldset>
              </form>
            </div>
          </div>
          <?php echo $this->Html->script('app/formview'); ?>
          <script type="text/javascript">
            $(document).ready(function() {
              // Classe ExtendFormView {{{
              var ExtendFormView = FormView.extend();
              //}}}
              var extendFormView = new ExtendFormView({
                el: $("#formulario")
              });
            });
          </script>